package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Task;

public interface TaskService {

	public Task getInfo(String id);

	public void updateInfo(Task task);

	public Serializable save(Task task);

	public void delete(Task task);

	public List<Task> getAll();

	public Task getModelById(Serializable id);

	public List<Task> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Task task);

	public void saveOrUpdateAll(Collection<Task> collection);

	public void update(Task task);

	public List<Task> getByCriteria(DetachedCriteria dc);

}
